package test;

import com.dataart.productshop.dao.StudentDao;
import com.dataart.productshop.model.boiko.informationsystem.Student;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class test {

    @Autowired
    StudentDao studentDao;

	public static void main (String [] args) throws ParseException {
       String s = "2014-01-09";

        System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse(s));

    }


    private void makeStuff(){
        Student st = new Student();
        st.setName("st name");
        st.setDateEnter(new Date());
        st.setDateFinish(new Date());

        studentDao.save(st);
        System.out.println(studentDao.getAll());

    }
}
